/*
 * @Author: caofujun
 * @Date: 2020-08-20 20:54:36
 * @Description:
 */
import request from '@/utils/request'

let { CancelToken } = request;

let cancel = null;
export function getTreatment(params) {
    return request({
        url: 'admin/reservation/patient/list',
        method: 'get',
        headers: { cancel: true },
        cancelToken: new CancelToken(cancelFn => {
            cancel && cancel();
            cancel = cancelFn;
        }),
        params
    })
};
